﻿<Window x:Class="UI.Windows.Dialogs.ImportExportDialogWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:lex="clr-namespace:WPFLocalizeExtension.Extensions;assembly=WPFLocalizeExtension"
		xmlns:wnd="clr-namespace:UI.Windows.Dialogs" 
        xmlns:toolkit="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
        Name="This"
		Title="{lex:Loc RAE:Strings:Import_export_options}" Width="300" SizeToContent="Height" Icon="/RAE;component/Resources/Icons/ImportExport.ico" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
	
	<Window.CommandBindings>
		<CommandBinding Command="wnd:ImportExportDialogWindow.ImportOptionsCommand" Executed="ImportOptionsCommandExecuted" CanExecute="FilePathNonEmptyCanExecute"/>
		<CommandBinding Command="wnd:ImportExportDialogWindow.ExportOptionsCommand" Executed="ExportDialogCommandExecuted" CanExecute="FilePathNonEmptyCanExecute"/>
	</Window.CommandBindings>
	
	<DockPanel Margin="3">
		<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" DockPanel.Dock="Bottom">
			<Button Content="{lex:Loc RAE:Strings:Import}" Margin="3" Padding="5 0" Command="wnd:ImportExportDialogWindow.ImportOptionsCommand"/>
			<Button Content="{lex:Loc RAE:Strings:Export}" Margin="3" Padding="5 0" Command="wnd:ImportExportDialogWindow.ExportOptionsCommand"/>
			<Button Content="{lex:Loc RAE:Strings:Cancel}" Margin="3" Padding="5 0" Click="CancelButtonClick"/>
		</StackPanel>
		<DockPanel DockPanel.Dock="Top" Margin="0 0 0 10">
			<Button Content="..." Width="Auto" DockPanel.Dock="Right" Padding="5 0" Margin="5 0 0 0" Click="OpenSaveFileDialogButtonClick"/>
			<toolkit:WatermarkTextBox x:Name="PathWatermarkTextBox" Watermark="{lex:Loc RAE:Strings:Options_path}" VerticalContentAlignment="Center" IsReadOnly="True"/>
		</DockPanel>
	</DockPanel>
</Window>
